﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Diagnostics;
using SpecialServices;

namespace TerraLAN_Downloader
{
    static class Program
    {
             
        
        /// <summary>
        /// Point d'entrée principal de l'application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            using (SingleProgramInstance spi = new SingleProgramInstance("terralan"))
            {
                if (spi.IsSingleInstance)
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new Form1());
                }
                else
                {
                    spi.RaiseOtherProcess();
                }
            }
        }
    }
}
